package com.asiainfo.indb;

import com.asiainfo.indb.view.InDb;
import org.pushingpixels.substance.api.skin.SubstanceBusinessBlueSteelLookAndFeel;

import javax.swing.*;
import java.awt.*;

/**
 * 程序主入口
 *
 * @author zym
 * @version 1.0.0
 */
public class Window {

    public static void main(String[] args) {
        EventQueue.invokeLater(() -> {
            try {
                UIManager.setLookAndFeel(new SubstanceBusinessBlueSteelLookAndFeel());

                // 构建主窗口
                new InDb();
            } catch (Exception e) {
                JOptionPane.showMessageDialog(null, "启动异常：" + e.getMessage(), "错误", JOptionPane.ERROR_MESSAGE);
                System.exit(-1);
            }
        });
    }

}